<%-- ExMobi JSP文件，注释和取消快捷键统一为Ctrl+/ 多行注释为Ctrl+Shift+/ --%>
<%@ page language="java" import="java.util.*"
 contentType="application/text; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/client/adapt.jsp"%>
<%@ include file="/client/adapt_extend.jsp"%>
<%@ include file="properties.jsp" %>
<%
  String filepath = aa.req.getAttachAddr("param");
  byte[] fileContent =aa.common.readBinaryFile(filepath);
  String paramstr = new String(fileContent, "UTF-8");
  //字节转字符串bug
  int idx = paramstr.indexOf("{");
  paramstr = paramstr.substring(idx);
  String xmlstr = aa.jsonToXmlString(paramstr);
  xmlstr = xmlstr.replaceAll("<jsondata>", "<ROOT>");
  xmlstr = xmlstr.replaceAll("</jsondata>", "</ROOT>");
  System.out.println(xmlstr);
  out.println(xmlstr);
%>
